package ar.edu.ufasta.presupuestos.servicios.web;

public class Constantes {
	public static final int PROTOCOL_100 = 100;
	public static final int SYSTEM_CODE = 50;
	
	// Code operation table
	public static final int PACK_LOGIN = 1;
	public static final int PACK_LOGOUT = 2;
	public static final int PACK_APROVAR_PRESUPUESTO = 3;
	public static final int PACK_DESAPROVAR_PRESUPUESTO = 4;
	public static final int PACK_CONSULTA_PRESUPUESTO = 5;
	public static final int PACK_CONSULTA_CLIENTE = 6;
	public static final int PACK_LISTA_PRESUPUESTO = 7;

	public static final int TRANSACTION_OK = 0;
	// Errors table
	public static final int ERROR_PROTOCOL = 1;
	public static final int ERROR_SYSTEMCODE = 2;
	public static final int ERROR_OPERATIONCODE = 3;
	public static final int ERROR_INVALID_USER = 10;
	public static final int ERROR_NO_USER = 11;
	public static final int ERROR_NO_PRESUPUESTOS = 12;
	public static final int ERROR_PRESUPUESTO_MISSING = 13;
	public static final int ERROR_CLIENTE_MISSING = 14;
	public static final int ERROR_TRANSACTION_INVALID = 15;
	public static final int ERROR_PRESUPUESTO_ALREADY_APROVED = 16;
	public static final int ERROR_PRESUPUESTO_ALREADY_DISAPROVED = 17;
	public static final int ERROR_PRESUPUESTO_NOT_VALID = 18;	
	public static final int ERROR_SERVER_ERROR = 99;
	
	// Tipos de listas de presupuestos
	public static final int LISTA_PR_ALL = 0;
	public static final int LISTA_PR_CONFORMADOS = 1;
	public static final int LISTA_PR_APROBADOS = 2;
	
	//
	public static final int TRANSACTION_APROBAR = 1;
	public static final int TRANSACTION_DESAPROBAR = 2;
}
